class CreateLineItems < ActiveRecord::Migration
  def self.up
    create_table :line_items do |t|
      t.integer:order_id
      t.integer:product_id
      t.decimal:product_sum_price,:precision=>8,:scale=>2
      t.integer:product_amount,:default=>1
      
      t.timestamps
    end
  end

  def self.down
    drop_table :line_items
  end
end
